package net.huashitong.synthetical.showView.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.StringPKService;
import com.sirdc.modules.sys.service.SysTableService;
import net.huashitong.synthetical.showView.entity.EconomicsMainModular;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EconomicsMainModularService extends StringPKService<EconomicsMainModular> {
    @Override
    protected BaseDao<EconomicsMainModular, String> getDao() {
        return null;
    }

    @Autowired
    private SysTableService tableService;

    @Override
    protected void beforeSave(EconomicsMainModular obj) {
        obj.setSysId(tableService.updateMaxSysId("t_syn_e_main_modular", null));
    }
}
